'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //登录接口
  router.post('/api/user/login', controller.user.login);
  //第三方登录
  router.post('/api/user/gitlogin', controller.user.gitlogin);
  //获取列表接口
  router.get('/api/list/getlist', controller.list.getlist);
  //评论列表接口
  router.post('/api/list/addcomment', controller.list.addcomment);
};
